package com.aliyun.messagemgt.entities;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;


import java.util.Date;

/**
 * @author yangshaobo
 * @date 2021年9月22日
 */
@TableName("base_message_template_param")
@Accessors(chain = true)
@Data
public class MessageTemplateParamEntity {

    @ApiModelProperty(value = "参数表ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "模板ID，对应消息模板表ID")
    private Long templateId;

    @ApiModelProperty(value = "参数名称")
    private String paramName;

    @ApiModelProperty(value = "参数描述")
    private String paramDescription;

    @ApiModelProperty(value = "是否逻辑删除 Y-已删除 N-未删除")
    private String isDeleted;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtCreated;

    @ApiModelProperty(value = "修改人")
    private String modifier;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date gmtModified;

    @ApiModelProperty(value = "attribute1")
    private String attribute1;

    @ApiModelProperty(value = "attribute2")
    private String attribute2;

    @ApiModelProperty(value = "attribute3")
    private String attribute3;
}
